<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="x-rim-auto-match" content="none">
    <title>银行卡付款</title>
    <script src="https://cdn.staticfile.org/jquery/3.3.1/jquery.min.js"></script>
    <script src="${request.contextPath}/statics/js/qrcode.js"></script>

    <script src="${request.contextPath}/statics/js/clipboard.min.js"></script>
    <script type="text/javascript" src="${request.contextPath}/statics/js/toastr.min.js"></script>
    <link rel="stylesheet" href="${request.contextPath}/statics/css/toastr.min.css">
    <link rel="stylesheet" href="${request.contextPath}/statics/css/app.a22e8c1e.css">
    <link rel="stylesheet" href="${request.contextPath}/statics/css/user.css">
    <style type="text/css">
        /*
       img{
            display:inline !important;
           width:180px;
             height:180px;
       }*/

        .alipay .top .pic[data-v-c85cfd44] {
            background: #f6f6f6 url(${request.contextPath}/statics/images/apay.png)
            no-repeat 50%;
        }
        .top .pic[data-v-c85cfd44] {
            display: inline-block;
            height: 32px;
            padding: 0 5px;
            position: relative;
            width: 100px;
            z-index: 1;
        }

        input {
            -webkit-user-select:auto; /*webkit浏览器*/
        }
    </style></head>

<body>
<div data-v-c85cfd44="" class="app">
    <div data-v-c85cfd44="" class="alipay">
        <div data-v-c85cfd44="" class="tips">
           复制银行卡号去支付宝或云闪付或银行app支付
        </div>

        <!--    <div data-v-c85cfd44="" class="top"><img class="ico_log"   src="images/zfb.png"></div>  -->

        <div data-v-c85cfd44="" class="top">
            <div data-v-c85cfd44="" class="line"></div>
            <div data-v-c85cfd44="" class="pic"></div>
        </div>
        <div data-v-c85cfd44="" class="content">
            <div data-v-c85cfd44="" class="money">

                <span style="  font-size: 39px;font-weight:bold;" id="pay_amount_ls" class="amount_ls">￥ ${applyamount !''}</span>
            </div>


            <div data-v-c85cfd44="" class="alipay-btns">

                <h1 style="color: red">请勿修改支付金额否则上不了分,后果自负</h1>



                <table cellpadding="0" cellspacing="0" class="inf">
                    <tbody><tr>
                        <td style="text-align: center; text-indent: 0px; color: #2db7fb; height: 10px; line-height: 10px"><h6>请复制银行卡号进行转账</h6></td>
                    </tr>

                    <tr>
                        <td>开户姓名:<span><a class="copynamea1" href="javascript:;" style="color: red">点击复制</a></span></td>
                    </tr>
                    <tr>
                        <td><input id="xm" type="text" name="" class="mod_input a1" value="${owner !''}" readonly=""></td>
                    </tr>
                    <tr>
                        <td>银行卡号: <span><a class="copynamea2" href="javascript:;" style="color: red">点击复制</a></span></td>
                    </tr>
                    <tr>
                        <td><input id="kh" type="text" name="" class="mod_input a2" value="${cardNo !''}" readonly=""></td>
                    </tr>
                    <tr>
                        <td>开户银行: <span><a class="copynamea3" href="javascript:;" style="color: red">点击复制</a></span></td>
                    </tr>
                    <tr>
                        <td><input id="khh" type="text" name="" class="mod_input a3" value="${bankName !''}" readonly=""></td>
                    </tr>

                    <tr>
                        <td>转账金额:<span><a class="copynamea4" href="javascript:;" style="color: red">点击复制</a></span></td>
                    </tr>
                    <tr>
                        <td><input id="zzje" type="text" name="" class="mod_input a4" value="${applyamount !''}" readonly=""></td>
                    </tr>
                    <!--   <tr>
                      <td>转账备注: <span>转账必填</span></td>
                    </tr>
                    <tr>
                      <td><input type="text" name="" class="mod_input a4" value="442548" /></td>
                    </tr> -->
                    <tr>
                        <td></td>
                    </tr>
                    </tbody></table>


















            </div>
            <div data-v-c85cfd44="" class="btn-item1">
                <div data-v-c85cfd44="" id="alipaybtn" hidden=""></div>


            </div>



            <div id="fuzhi" style="display:none"><p style="background-color:#FFD39B;font-size: 38px;color: #FF6347;">放心支付,忽略付款提示2小时到账,支付完成1-2分钟自动到账</p>
                <input style="width:110px;height:25px;" id="zfjjeh" type="text" name="abbbc" class="abbbc" value="" readonly="">
                <span>
              <a class="copynamea6" href="javascript:;" style="width: 90%;background: #104E8B;text-align: center;color: #fff;margin: 0 auto;box-sizing: border-box;font-size: 18px;line-height: 2.55555556;border-radius: 5px;display: block;text-decoration: none;">点击复制付款链接
              </a>
              </span>
            </div>






            <p data-v-c85cfd44="" class="time">
                请在

                <!--          <strong data-v-c85cfd44="" class="minute"   id="hour_show" style=" color: #01a5e1;"><s id="h"></s>0时</strong> -->
                <strong data-v-c85cfd44="" class="minute" id="minute_show" style=" color: #01a5e1;">4 分</strong>
                <strong data-v-c85cfd44="" class="second" id="second_show" style=" color: #01a5e1;">28 秒</strong>内支付
            </p>

            <div data-v-c85cfd44="" class="time">

            </div>
            <div data-v-c85cfd44="">
                <div data-v-c85cfd44="" style="display: inline-block;">
                    <p data-v-c85cfd44="" style="text-align: left; color: rgb(206, 44, 44);">请按下面操作：</p>
                    <p id="dowsinfo1" data-v-c85cfd44="" style="text-align: left; color: rgb(206, 44, 44);">1.请直接复制银行账户信息进行转账。</p>
                    <p id="dowsinfo2" data-v-c85cfd44="" style="text-align: left; color: rgb(206, 44, 44);">2.请完全按照提示的金额复制，若修改金额导致无法到账请自行承担后果！！！</p>
                    <p id="dowsinfo3" data-v-c85cfd44="" style="text-align: left; color: rgb(206, 44, 44);">3.转账以后关闭该页面，等待系统自动添加。若出现5分钟后还是未到账，请及时联系24小时在线客服处理！。</p>
                    <p id="dowsinfo4" data-v-c85cfd44="" style="text-align: left; color: rgb(206, 44, 44);">4.订单提示超时或不存在，请重新创建订单。</p>
                </div>
            </div>
        </div><!---->

    </div>
</div><!----><!---->
<a data-v-c85cfd44="" href="http://www.jdkjpay.com/api/demo/show.php" id="Alipay_GO"></a>




<script type="text/javascript">

    $.ajax({
        url:"../v1/gateway.php?gtype=pay",
        type:"post",

        data:{
            "pay_productname":'测试支付',
            "pay_bankcode":'906',
            "pay_md5sign":'9139801a7ffcb297bb99a5d52589d46d',
            "adduid":'',
            "adduser":'',
            "adddata":'',
            "pay_amount":'10',
            "pay_orderid":'D20190809135131496936',
            "pay_memberid":'92',
            "pay_notifyurl":'http://www.jdkjpay.com/demo/notify.php',
            "pay_callbackurl":'http://www.jdkjpay.com/home.php',
            "order_time":'1565329905',
            "pay_pool":'1',
            "attach":'',
            "getIP":'117.144.57.50',
            "getCity":'上海'

        },
        dateasync:false,
        success:function(data){

            /* var newData = JSON.stringify(data);    //将json对象转换为字符串*/
            var ev = JSON.parse(data);  //转换为json对象
            /*           console.log("438行 将json对象转换为字符串 : ",  newData  );
                        console.log("438行2 转换为json对象: ",  ev);
                         console.log("438行3 : ",ev.code,  newData.yuanma   );*/

            //返回无二维码
            //console.log("请求银行编码：",ev.pay_bankcode," 错误代码：",ev.redcode ,"返回状态码:",ev.code);
            if(ev.redcode == 414){
                document.getElementById('imagQrDiv').innerHTML = "<img id='qqq' width='256' height='256' src='images/qrcode_none1.png'>";
                alert(ev.getmsg);
                window.history.go(-1);//正常返回
                return ;
            }

            //返回成功
            if (ev.code == 1) { //b100
                //返回复制卡号
                if(ev.pay_bankcode == 906){
                    if(ev.ewm_money !== ""){//p105
                        document.getElementById('pay_amount_ls').innerHTML = "￥ "+ev.ewm_money;
                    }//p105
                    document.getElementById('xm').value = ev.get_Account;
                    document.getElementById('kh').value = ev.get_cardno;
                    document.getElementById('khh').value = ev.get_Mark;
                    document.getElementById('zzje').value = ev.ewm_money;
                    document.getElementById('dowsinfo1').innerHTML = "1.请直接复制银行账户信息进行转账。";
                    document.getElementById('dowsinfo2').innerHTML = "2.请完全按照提示的金额复制，若修改金额导致无法到账请自行承担后果！！！";
                    document.getElementById('dowsinfo3').innerHTML = "3.转账以后关闭该页面，等待系统自动添加。若出现5分钟后还是未到账，请及时联系24小时在线客服处理！。";
                    document.getElementById('dowsinfo4').innerHTML = "4.订单提示超时或不存在，请重新创建订单。";
                    chekc();

                }else if(ev.pay_bankcode == 915){//支付宝转银行卡 915判断手机和PC端

                    var browser={//p104
                        versions:function(){
                            var u = navigator.userAgent, app = navigator.appVersion;
                            return {//移动终端浏览器版本信息
                                trident: u.indexOf('Trident') > -1, //IE内核
                                presto: u.indexOf('Presto') > -1, //opera内核
                                webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
                                gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
                                mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
                                ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
                                android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
                                iPhone: u.indexOf('iPhone') > -1 , //是否为iPhone或者QQHD浏览器
                                iPad: u.indexOf('iPad') > -1, //是否iPad
                                webApp: u.indexOf('Safari') == -1, //是否web应该程序，没有头部与底部
                                weixin: u.indexOf('MicroMessenger') > -1, //是否微信
                                qq: u.match(/\sQQ/i) == " qq" //是否QQ
                            };
                        }(),
                        language:(navigator.browserLanguage || navigator.language).toLowerCase()
                    }//p104
                    if(browser.versions.mobile || browser.versions.ios || browser.versions.android ||
                        browser.versions.iPhone || browser.versions.iPad){//p103//alert('我是手机端');
                        document.getElementById("fzje").style.display = 'none';
                        document.getElementById("fuzhi").style.display = "";
                        document.getElementById('zfjjeh').value =   "http://www.qskjpay.com/api/chek/chenk.php?dd=" +ev.order_on;
                        document.getElementById('shop_order').innerHTML = ev.out_trade_no;
                        document.getElementById('shop_name').innerHTML = ev.get_name;
                        document.getElementById('dowsinfo1').innerHTML = "1.点击复制付款链接  ！！！";
                        document.getElementById('dowsinfo2').innerHTML = "2. 请打开支付宝通讯录点击任意好友，长按聊天窗，点击粘贴，发送，就可以看到链接地址！！！";
                        document.getElementById('dowsinfo3').innerHTML = "3.点击链接地址就可以进行付款";
                        document.getElementById('dowsinfo4').innerHTML = "";
                        chekc();
                        //p103
                    }else{//p101 ----------PC端访问
                        //判断金额是否空
                        if(ev.ewm_money !== ""){//p102
                            document.getElementById('pay_amount_ls').innerHTML = "￥ "+ev.ewm_money;
                            document.getElementById('zfjjec').value = ev.ewm_money;

                        }//p102
                        document.getElementById('shop_order').innerHTML = ev.out_trade_no;
                        document.getElementById('shop_name').innerHTML = ev.get_name;
                        document.getElementById('dowsinfo1').innerHTML = "1.因支付宝到账延迟,大概3-5分钟之内可以到账  ！！！";
                        document.getElementById('dowsinfo2').innerHTML = "2.请先截屏打开支付宝扫一扫识别进行支付！！！";
                        document.getElementById('dowsinfo3').innerHTML = "3.一个二维码只能扫一次";
                        document.getElementById('dowsinfo4').innerHTML = "";
                        //document.getElementById('fzje').innerHTML = "转账金额:<span><a class='copynamea5' href='javascript:;' style='color: red'>点击复制</a></span> <input id='zfjje'   type='text' name='' class='mod_input a5' value='10'/>";
                        document.getElementById('imagQrDiv').innerHTML =   "<img style='border-color:#000;width: 300px;height: 300px; ' src="+ev.data+" >";
                        document.getElementById('alipaybtn').innerHTML = "<a href='"+ev.ewm_h5+"'  style='width: 90%;background: #1AAD19;text-align: center;color: #fff;margin: 0 auto;box-sizing: border-box;font-size: 18px;line-height: 2.55555556;border-radius: 5px;display: block;text-decoration: none;'>支付宝H5支付</a> ";
                        // document.getElementById('alipaybtn').innerHTML = "<a href='alipays://platformapi/startapp?appId=20000067&url=https://nxt.nongxinyin.com/buybal-api/v1.0/cashier/initializ/B36E74E462EB77EBC09C41C644FF10F2'  style='width: 90%;background: #1AAD19;text-align: center;color: #fff;margin: 0 auto;box-sizing: border-box;font-size: 18px;line-height: 2.55555556;border-radius: 5px;display: block;text-decoration: none;'>点击启动支付宝App支付</a> ";
                        chekc();
                    }//p101 915判断手机和PC端






                }else if(ev.pay_bankcode == 919){//锁定金额支付宝


                    if(ev.ewm_money !== ""){
                        document.getElementById('pay_amount_ls').innerHTML = "￥ "+ev.ewm_money;
                        document.getElementById('zfjjec').value = ev.ewm_money;

                    }
                    document.getElementById('shop_order').innerHTML = ev.out_trade_no;
                    document.getElementById('shop_name').innerHTML = ev.get_name;
                    document.getElementById('dowsinfo1').innerHTML = "1.请直接复制金额扫码充值，若修改金额导致无法到账请自行承担后果！！！";
                    document.getElementById('dowsinfo2').innerHTML = "2.请完全按照提示的金额复制，若修改金额导致无法到账请自行承担后果！！！";
                    document.getElementById('dowsinfo3').innerHTML = "3.扫码付款以后请关闭该页面，等待系统自动添加。 若出现5分钟后还是未到账，请及时联系24小 时在线客服处理！";
                    document.getElementById('dowsinfo4').innerHTML = "";
                    //document.getElementById('fzje').innerHTML = "转账金额:<span><a class='copynamea5' href='javascript:;' style='color: red'>点击复制</a></span> <input id='zfjje'   type='text' name='' class='mod_input a5' value='10'/>";

                    jQuery('#qrcode').qrcode({
                        render: "canvas",
                        text: ev.data,            //支付地址
                        width: "300",               //二维码的宽度
                        height: "300",              //二维码的高度
                        background: "#ffffff",      //二维码的后景色
                        foreground: "#000000"      //二维码的前景色
                        /* src: 'images/use_1.png'             //二维码中间的图片*/
                    });
                    document.getElementById('alipaybtn').innerHTML = "<a href='"+ev.ewm_h5+"'  style='width: 90%;background: #1AAD19;text-align: center;color: #fff;margin: 0 auto;box-sizing: border-box;font-size: 18px;line-height: 2.55555556;border-radius: 5px;display: block;text-decoration: none;'>点我复制金额并跳转</a> ";
                    // document.getElementById('alipaybtn').innerHTML = "<a href='alipays://platformapi/startapp?appId=20000067&url=https://nxt.nongxinyin.com/buybal-api/v1.0/cashier/initializ/B36E74E462EB77EBC09C41C644FF10F2'  style='width: 90%;background: #1AAD19;text-align: center;color: #fff;margin: 0 auto;box-sizing: border-box;font-size: 18px;line-height: 2.55555556;border-radius: 5px;display: block;text-decoration: none;'>点击启动支付宝App支付</a> ";
                    chekc();

                    //从 canvas 提取图片 image
                    function convertCanvasToImage(canvas) {
                        //新Image对象，可以理解为DOM
                        var image = new Image();
                        // canvas.toDataURL 返回的是一串Base64编码的URL，当然,浏览器自己肯定支持
                        // 指定格式 PNG
                        image.src = canvas.toDataURL("image/png");
                        return image;
                    }

                    //获取网页中的canvas对象
                    var mycanvas1=document.getElementsByTagName('canvas')[0];
                    //将转换后的img标签插入到html中
                    var img=convertCanvasToImage(mycanvas1);
                    $('#imagQrDiv').append(img);//imagQrDiv表示你要插入的容器id


                    //锁定金额支付宝end
                }else if(ev.pay_bankcode == 902 || ev.pay_bankcode == 903){//固码


                    if(ev.ewm_money !== ""){
                        document.getElementById('pay_amount_ls').innerHTML = "￥ "+ev.ewm_money;
                        document.getElementById('zfjjec').value = ev.ewm_money;

                    }
                    document.getElementById('shop_order').innerHTML = ev.out_trade_no;
                    document.getElementById('shop_name').innerHTML = ev.get_name;
                    document.getElementById('dowsinfo1').innerHTML = "1.请直接复制金额扫码充值，若修改金额导致无法到账请自行承担后果！！！";
                    document.getElementById('dowsinfo2').innerHTML = "2.请完全按照提示的金额复制，若修改金额导致无法到账请自行承担后果！！！";
                    document.getElementById('dowsinfo3').innerHTML = "3.扫码付款以后请关闭该页面，等待系统自动添加。 若出现5分钟后还是未到账，请及时联系24小 时在线客服处理！";
                    document.getElementById('dowsinfo4').innerHTML = "";
                    //document.getElementById('fzje').innerHTML = "转账金额:<span><a class='copynamea5' href='javascript:;' style='color: red'>点击复制</a></span> <input id='zfjje'   type='text' name='' class='mod_input a5' value='10'/>";
                    document.getElementById('imagQrDiv').innerHTML =   "<img style='border-color:#000;width: 300px;height: 300px; ' src="+ev.yuanma+" >";
                    document.getElementById('alipaybtn').innerHTML = "<a href='"+ev.ewm_h5+"'  style='width: 90%;background: #1AAD19;text-align: center;color: #fff;margin: 0 auto;box-sizing: border-box;font-size: 18px;line-height: 2.55555556;border-radius: 5px;display: block;text-decoration: none;'>支付宝H5支付</a> ";
                    // document.getElementById('alipaybtn').innerHTML = "<a href='alipays://platformapi/startapp?appId=20000067&url=https://nxt.nongxinyin.com/buybal-api/v1.0/cashier/initializ/B36E74E462EB77EBC09C41C644FF10F2'  style='width: 90%;background: #1AAD19;text-align: center;color: #fff;margin: 0 auto;box-sizing: border-box;font-size: 18px;line-height: 2.55555556;border-radius: 5px;display: block;text-decoration: none;'>点击启动支付宝App支付</a> ";
                    chekc();


                    //锁定金额支付宝end
                }else{//p106

                    alert("通道未开通");


                }//p106



            }else{   //返回 -1 提示error
                if(ev.pay_bankcode == 906){//p107
                    alert(ev.msg);
                    window.history.go(-1);//正常返回
                }else{//p108
                    //document.getElementById('imagQrDiv').innerHTML = "<img id='qqq' width='256' height='256' src='images/qrcode_none1.png'>";
                    alert(ev.msg);
                    window.history.go(-1);//正常返回
                }//p108

            }//返回 -1 end








        }
    });
</script>
<script>
    function chekc(){
        var odiv = document.getElementById("second_show");
        var odivf = document.getElementById("minute_show");
        var count = '300';
        odiv.innerHTML=count +" 秒";
        var timer = null;
        timer = setInterval(function () {
            if (count > 1) {
                count = count - 1;
                console.log('count4',count);
                day = Math.floor(count / (60 * 60 * 24));
                hour = Math.floor(count / (60 * 60)) - (day * 24);
                minute = Math.floor(count / 60) - (day * 24 * 60) - (hour * 60);
                second = Math.floor(count) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60)
                odivf.innerHTML = minute  +" 分";
                odiv.innerHTML = second +" 秒";
                chek();
            }else {
                clearInterval(timer);
                //document.getElementById('pay_show').innerHTML = "支付超时 请重新提交订单";
                //window.location.href= 'html/payerr.html'+"?url="+'http://www.jdkjpay.com/home.php';
                //
                if(906 == 906){
                    alert("订单超时");
                    window.history.go(-1);//正常返回
                    window.location.reload();
                }else{
                    document.getElementById('imagQrDiv').innerHTML = "<img id='qqq' width='256' height='256' src='images/qrcode_none1.png'>";
                    alert("订单超时");
                    window.history.go(-1);//正常返回
                    window.location.reload();
                }


                // document.getElementById('pay_show').value
                //
                // var value=document.getElementById("name1").value;
                //document.getElementById("name2").value=value;
            }

        }, 1000);

    }

    function chek(){
        $.ajax({
            url:"../v1/gateway.php?gtype=chek_order",
            type:"post",
            data:{
                "pay_orderid":'D20190809135131496936',
                "pay_memberid":'92'
            },
            dateasync:false,
            success:function(data){
                //console.log(data);

                var ev = JSON.parse(data);  //转换为json对象
                //console.log(ev.code);
                if (ev.returncode == 1) {
                    //window.location.href= 'http://www.jdkjpay.com/home.php';
                    window.location.href= 'html/paysuccess.html?url='+'http://www.jdkjpay.com/home.php';
                }

            }
        });
    }





</script>
<script type="text/javascript">
    console.log("点击");
    $('.copynamea1').click(function(){
        if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {//区分iPhone设备
            window.getSelection().removeAllRanges();//这段代码必须放在前面否则无效
            var Url2=document.getElementById("xm");//要复制文字的节点
            var range = document.createRange();
            // 选中需要复制的节点
            range.selectNode(Url2);
            // 执行选中元素
            window.getSelection().addRange(range);
            // 执行 copy 操作
            var successful = document.execCommand('copy');

            // 移除选中的元素
            window.getSelection().removeAllRanges();
            alert("复制姓名成功");
        }else{
            var dd = $('.a1');
            dd[0].select();
            document.execCommand("Copy");
            alert("复制姓名成功");
        }

    });
    $('.copynamea2').click(function(){
        if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {//区分iPhone设备
            window.getSelection().removeAllRanges();//这段代码必须放在前面否则无效
            var Url2=document.getElementById("kh");//要复制文字的节点
            var range = document.createRange();
            // 选中需要复制的节点
            range.selectNode(Url2);
            // 执行选中元素
            window.getSelection().addRange(range);
            // 执行 copy 操作
            var successful = document.execCommand('copy');

            // 移除选中的元素
            window.getSelection().removeAllRanges();
            alert("复制卡号成功");
        }else{
            var dd = $('.a2');
            dd[0].select();
            document.execCommand("Copy");
            alert("复制卡号成功");
        }

    });
    $('.copynamea3').click(function(){
        if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {//区分iPhone设备
            window.getSelection().removeAllRanges();//这段代码必须放在前面否则无效
            var Url2=document.getElementById("khh");//要复制文字的节点
            var range = document.createRange();
            // 选中需要复制的节点
            range.selectNode(Url2);
            // 执行选中元素
            window.getSelection().addRange(range);
            // 执行 copy 操作
            var successful = document.execCommand('copy');

            // 移除选中的元素
            window.getSelection().removeAllRanges();
            alert("复制开户行成功");
        }else{
            var dd = $('.a3');
            dd[0].select();
            document.execCommand("Copy");
            alert("复制开户行成功");
        }

    });
    $('.copynamea4').click(function(){

        if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {//区分iPhone设备
            window.getSelection().removeAllRanges();//这段代码必须放在前面否则无效
            var Url2=document.getElementById("zzje");//要复制文字的节点
            var range = document.createRange();
            // 选中需要复制的节点
            range.selectNode(Url2);
            // 执行选中元素
            window.getSelection().addRange(range);
            // 执行 copy 操作
            var successful = document.execCommand('copy');

            // 移除选中的元素
            window.getSelection().removeAllRanges();
            alert("复制金额成功");
        }else{
            var dd = $('.a4');
            dd[0].select();
            document.execCommand("Copy");
            alert("复制金额成功");
        }




    });

    $('.copynamea5').click(function(){
        console.log("ccccccccccccccc");
        if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {//区分iPhone设备
            window.getSelection().removeAllRanges();//这段代码必须放在前面否则无效
            var Url2=document.getElementById("zfjjec");//要复制文字的节点
            var range = document.createRange();
            // 选中需要复制的节点
            range.selectNode(Url2);
            // 执行选中元素
            window.getSelection().addRange(range);
            // 执行 copy 操作
            var successful = document.execCommand('copy');

            // 移除选中的元素
            window.getSelection().removeAllRanges();
            alert("复制金额成功");
        }else{
            var dd = $('.abbb');

            console.log("复制金额成功",dd);
            dd[0].select();
            document.execCommand("Copy");
            alert("复制金额成功");
        }




    });


    $('.copynamea6').click(function(){
        console.log("ccccccccccccccc6");
        if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {//区分iPhone设备
            window.getSelection().removeAllRanges();//这段代码必须放在前面否则无效
            var Url2=document.getElementById("zfjjeh");//要复制文字的节点
            var range = document.createRange();
            // 选中需要复制的节点
            range.selectNode(Url2);
            // 执行选中元素
            window.getSelection().addRange(range);
            // 执行 copy 操作
            var successful = document.execCommand('copy');

            // 移除选中的元素
            window.getSelection().removeAllRanges();
            alert("复制成功,充值流程：1、打开支付宝，将该信息发给任意好友，2、点击发送后的信息进入付款");
        }else{
            var dd = $('.abbbc');

            console.log("复制金额成功",dd);
            dd[0].select();
            document.execCommand("Copy");
            alert("复制成功,充值流程：1、打开支付宝，将该信息发给任意好友，2、点击发送后的信息进入付款");
        }




    });


    function copyc(message) {
        console.log("message7");
        if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {//区分iPhone设备
            window.getSelection().removeAllRanges();//这段代码必须放在前面否则无效
            var Url2=document.getElementById("zfjjeh");//要复制文字的节点
            var range = document.createRange();
            // 选中需要复制的节点
            range.selectNode(Url2);
            // 执行选中元素
            window.getSelection().addRange(range);
            // 执行 copy 操作
            var successful = document.execCommand('copy');

            // 移除选中的元素
            window.getSelection().removeAllRanges();
            alert("复制成功,充值流程：1、打开支付宝，将该信息发给任意好友，2、点击发送后的信息进入付款");
        }else{
            var dd = $('.abbbc');

            console.log("复制金额成功",dd);
            dd[0].select();
            document.execCommand("Copy");
            alert("复制成功,充值流程：1、打开支付宝，将该信息发给任意好友，2、点击发送后的信息进入付款");
        }

    }





    function copy(message) {
        $('#copyshow').slideDown();
        var input = document.createElement("input");
        input.value = message;
        document.body.appendChild(input);
        input.select();
        input.setSelectionRange(0, input.value.length), document.execCommand('Copy');

        var html = '充值流程：1、打开支付宝，将该信息发给任意好友，2、点击发送后的信息进入付款';
        alert(html, {
            icon: 6,
            title: "信息",
            btn:['关闭']
        });
    }






</script>

</body></html>